Repository navigation
Conversation
…Fail The test mixed up field indexes (it restored wrong values into the next fields), never checked the network error title, and relied on the common idling resource, which can miss the settings check. The test servers pointed to 10.0.2.3, where a connection hangs until the 30 s timeout, so the run time and the outcome depended on what was left in the form. Use hosts of *.flowcrypt.test, where the IMAP and SMTP ports are closed, set one incorrect value per check and restore it afterwards, and wait for the result dialog.
StandardForwardOfEncryptedPgpMimeMessageWithOriginalAttachmentsComposeGmailApiFlow was ignored, but CI history since August shows one failure without a stack trace, and it passes on a slow CI-like emulator. Run it with @FlakyTest like the other forward tests to collect data on CI. Wait for the forwarded attachments on the compose screen instead of a fixed sleep, and for the message details screen after sending, before pressing Back, as the sibling forward tests do.
All its CI failures since August were infrastructure problems (the system crashed during instrumentation, or the device went offline), not test failures. It passes on a slow CI-like emulator.
The app keeps JavaScript disabled in WebViews, and tests enable it with forceJavascriptEnabled() right before a web check. That only calls setJavaScriptEnabled(true), and the setting reaches the renderer asynchronously. On a slow CI emulator the check ran first and failed with "Could not parse: null" or a 10 s timeout, although the message was already rendered (4 MessageDetailsFlowTest tests on master, every retry failed the same way because each retry starts a new WebView). Add checkWebViewWithJavascript() that enables JavaScript and retries the check for up to 30 s, then runs it once more to fail with the real error.
…lowTest The test passes against the local mail server, but it had fixed sleeps and short waits that silently continued on timeout. Wait for concrete states instead: the create key button (the app checks the settings and searches for backups first), the evaluated passphrase strength (the button does nothing before it), and the attester call. The app sends a backup of the created key to the inbox, and other tests expect that this user has no backups. The mail server delivers the email asynchronously, so the cleanup now waits for it before deleting it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR <what does it do and why?>
close #0000 // if this PR closes an issue
issue #0000 // if it doesn't close the issue yet
Tests (delete all except exactly one):
To be filled by reviewers
I have reviewed that this PR... (tick whichever items you personally focused on during this review):